<?php
	getHeader();
	
	if (isset($_GET['action']))
	{
		if ($_GET['action'] == 'teamInvite')
		{
			if (isset($_GET['code']) && isset($_SESSION['authPassed']))
			{
				$i = teamProf::chkTeamCode($_GET['code']);
				if ($i['status'] != 'NO')
				{
?>
					<span>你已成功加入队伍<?php echo teamProf::getTeamnameByTid($i['tid']); ?></span>
<?php
				}
				else
				{
?>
					<span>验证码错误, 无法加入队伍.</span>
<?php
				}
			}
		}
	}
	getPanel();
	getFooter();
?>